From 9df633bdbf1eb61d87910dfd9249993871267372 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Sat, 18 Nov 2017 14:41:10 -0700 Subject: [PATCH] make gtm test OS independent. --- testo.d/gtm.test | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testo.d/gtm.test b/testo.d/gtm.test index e48568f89..3b4c0a5f7 100644 --- a/testo.d/gtm.test +++ b/testo.d/gtm.test @@ -13,8 +13,11 @@ gpsbabel -i gtm -f ${REFERENCE}/sample.gtm.gz -o gpx,elevprec=6 -F ${TMPDIR}/gtm gpsbabel -i gpx -f ${TMPDIR}/gtm1.gpx -o gtm -F ${TMPDIR}/gtm.gtm.gz gpsbabel -i gtm -f ${TMPDIR}/gtm.gtm.gz -o gpx,elevprec=6 -F ${TMPDIR}/gtm2.gpx compare ${TMPDIR}/gtm1.gpx ${TMPDIR}/gtm2.gpx -bincompare ${TMPDIR}/gtm.gtm.gz ${REFERENCE}/sample.gtm.gz +# the gzip format encodes the compressing OS, so comparing +# gz files that contain the same content but were compressed +# on different OSs will fail. +#bincompare ${TMPDIR}/gtm.gtm.gz ${REFERENCE}/sample.gtm.gz gunzip -c ${TMPDIR}/gtm.gtm.gz > ${TMPDIR}/gtm.gtm gunzip -c ${REFERENCE}/sample.gtm.gz > ${TMPDIR}/sample.gtm -bincompare ${TMPDIR}/gtm.gtm ${REFERENCE}/sample.gtm +bincompare ${TMPDIR}/gtm.gtm ${TMPDIR}/sample.gtm -- 2.30.2